package com.nexus.core.sys.dto;

import com.alibaba.excel.annotation.ExcelProperty;
import com.nexus.core.query.annotation.QueryCondition;
import com.nexus.core.query.annotation.QueryType;
import com.nexus.core.service.dto.TreeDTO;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 部门表
 *
 * @Date 2025/7/28 15:08
 * @Author Administrator
 **/
@Data
@EqualsAndHashCode(callSuper = false)
public class SysOfficeDTO extends TreeDTO<SysOfficeDTO> {

    /**
     * 负责人
     */
    @ExcelProperty("负责人")
    @QueryCondition(tableField = "contact", type = QueryType.EQ)
    private String contact;
    /**
     * 电话
     */
    @ExcelProperty("电话")
    @QueryCondition(tableField = "phone", type = QueryType.EQ)
    private String phone;
    /**
     * 传真
     */
    @ExcelProperty("传真")
    @QueryCondition(tableField = "fax", type = QueryType.EQ)
    private String fax;
    /**
     * 邮箱
     */
    @ExcelProperty("邮箱")
    @QueryCondition(tableField = "email", type = QueryType.EQ)
    private String email;
    /**
     * 是否启用
     */
    @ExcelProperty("是否启用")
    @QueryCondition(tableField = "enable", type = QueryType.EQ)
    private Integer enable;

    /**
     * 组织机构
     */
    @ExcelProperty("组织机构")
    @QueryCondition(tableField = "org.id", type = QueryType.EQ)
    private SysOrgDTO org;
}